﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace ComputerStoreManager.View
{
    /// <summary>
    /// Interaction logic for InvoiceControl.xaml
    /// </summary>
    
    public delegate void OnInvoiceControlAddInvoiceSell();
    public delegate void OnInvoiceControlViewInvoiceSell();

    public partial class InvoiceControl : UserControl
    {
        public event OnInvoiceControlAddInvoiceSell OnAddInvoiceSellClicked;
        public event OnInvoiceControlViewInvoiceSell OnViewInvoiceSellClicked;
        public InvoiceControl()
        {
            InitializeComponent();
        }

        private void btnAddInvoiceSell_Click(object sender, RoutedEventArgs e)
        {
            if (OnAddInvoiceSellClicked != null)
            {
                OnAddInvoiceSellClicked();
            }
        }

        private void btnViewInvoiceSell_Click(object sender, RoutedEventArgs e)
        {
            if (OnViewInvoiceSellClicked != null)
            {
                OnViewInvoiceSellClicked();
            }
        }
    }
}
